<template>
	<div class="list-card-wrapper">
		<div class="title">
			{{ datas.eventTitle }}
		</div>
		<div class="code" v-if="bizTaskName">{{ datas.bizTaskName || '--' }}</div>
		<div class="code" v-else>{{ datas.eventNum || '--' }}</div>
		<div class="code">{{ datas.sourceSystemName || '--' }}</div>
		<slot name="time"></slot>
		<div class="top">
			<slot name="top"></slot>
		</div>
	</div>
</template>
<script setup lang="ts">
defineProps({
	datas: {
		type: Object as any,
	},
	bizTaskName: {
		type: Boolean,
		default: false,
	},
});
</script>
<style lang="scss" scoped>
.list-card-wrapper {
	position: relative;
	box-sizing: border-box;
	// display: flex;
	// flex-direction: column;
	// align-items: flex-start;
	// justify-content: space-between;
	width: 100%;
	min-height: 150px;
	padding: 20px;
	margin-bottom: 15px;
	font-size: 14px;
	font-weight: 400;
	color: #323233;
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0 3px 8px 0 #00000029;

	.title {
		width: calc(100% - 50px);
		margin-bottom: 15px;
		font-size: 16px;
		font-weight: 500;
		color: #303133;
		white-space: pre-wrap;
	}

	.top {
		position: absolute;
		top: 20px;
		right: 20px;
	}

	.code {
		margin-bottom: 10px;
		white-space: pre-wrap;
	}
}
</style>
